/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core.api;

import ibig.config.PropertyConfig;

/**
 *
 * @author ASUS_2
 */
public class APIConfig extends PropertyConfig {

    private volatile static APIConfig instance;
    public static final String API_APP_KEY = "api.app_key";

    static {
        try {
            instance = new APIConfig();
//            INSTANCE.initialize();
        } catch (Exception e) {
            throw new RuntimeException(e.getMessage());
        }
    }

    private APIConfig() {
        super(APIConstant.CONFIG_API);
    }

    public static APIConfig getInstance() {
        if (instance == null) {
            synchronized (APIConfig.class) {
                if (instance == null) {
                    instance = new APIConfig();

                }
            }
        }
        return instance;
    }

    public String getAPIAppKey() {
        return getString(API_APP_KEY);
    }
}
